package com.bawei.common.adapter

import com.bawei.common.entity.BannerEntity
import com.bawei.image.GlideImgLoader
import com.youth.banner.adapter.BannerImageAdapter
import com.youth.banner.holder.BannerImageHolder

/**
 * Author: Jason Zhang
 * Date: 2025/4/26
 * Desc: 本地Banner图片适配器
 */
class ImageBannerAdapter(list: MutableList<BannerEntity>): BannerImageAdapter<BannerEntity>(list) {
    override fun onBindView(
        holder: BannerImageHolder,
        data: BannerEntity,
        position: Int,
        size: Int
    ) {
        GlideImgLoader.loadResImage(holder.imageView, data.resId, holder.imageView)
    }


}